﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrototypPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            ShapeCache.LoadCache();

            Shape clonedShape = ShapeCache.GetShape("1");
            Console.WriteLine("Shape : " + clonedShape.GetMyType());

            Shape clonedShape2 = ShapeCache.GetShape("2");
            Console.WriteLine("Shape : " + clonedShape2.GetMyType());

            Shape clonedShape3 = ShapeCache.GetShape("2");
            Console.WriteLine("Shape : " + clonedShape3.GetMyType());

            Console.ReadKey();
        }
    }
}
